Skip to content

feat: EWM-617 check root#1120

Open
knightsforce wants to merge 23 commits intodevfrom
feature/EWM-617-check_root
Open

feat: EWM-617 check root#1120
knightsforce wants to merge 23 commits intodevfrom
feature/EWM-617-check_root

Conversation

@knightsforce
Copy link
Collaborator

@knightsforce knightsforce commented Dec 24, 2025

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@knightsforce knightsforce changed the title Feat: WIP! EWM-617 check root feat: WIP! EWM-617 check root Dec 24, 2025
@knightsforce knightsforce changed the title feat: WIP! EWM-617 check root feat: EWM-617 check root Feb 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements root/jailbreak detection functionality for the SparX Wallet Flutter application. When the app detects a rooted or jailbroken device, it displays a warning screen requiring the user to acknowledge the security risks before proceeding.

Changes:

  • Added root/jailbreak detection using the root_checker_plus package
  • Implemented a new alert screen with UI to warn users about security risks
  • Refactored bootstrap navigation logic into a dedicated delegate class
  • Introduced IndependentSeedRoute interface to allow certain routes (onboarding, root alert) to bypass seed-based guards

Reviewed changes

Copilot reviewed 18 out of 25 changed files in this pull request and generated 19 comments.

Show a summary per file
File Description
pubspec.yaml Added root_checker_plus: 1.0.0 dependency and new image asset directory
pubspec.lock Lock file update for new dependency
packages/ui_components_lib/lib/v2/colors_v2.dart Added white48 color constant for UI elements
lib/generated/locale_keys.g.dart Generated locale keys for root detection strings
lib/generated/assets.gen.dart Generated asset references for lock background image
lib/feature/root_device_alert/view/widgets/root_device_info_bs.dart Bottom sheet widget explaining root/jailbreak risks
lib/feature/root_device_alert/view/root_device_alert_screen_wm.dart Widget model for root alert screen state management
lib/feature/root_device_alert/view/root_device_alert_screen_model.dart Elementary model connecting to services
lib/feature/root_device_alert/view/root_device_alert_screen.dart Main root detection alert screen UI
lib/feature/root_device_alert/route.dart Route configuration for root alert screen
lib/feature/root_device_alert/domain/root_device_service.dart Service implementing root detection and user acknowledgment storage
lib/di/di.config.dart Generated DI configuration for new services and routes
lib/app/view/app_wm.dart Simplified navigation logic, delegating to new bootstrap delegate
lib/app/view/app_model.dart Added root device service integration
lib/app/service/bootstrap/bootstrap_navigation_delegate.dart New delegate extracting bootstrap navigation logic
lib/app/router/compass/route.dart Added IndependentSeedRoute marker interface
lib/feature/onboarding/route.dart Implemented IndependentSeedRoute for onboarding
lib/feature/onboarding/guard.dart Updated guard to check IndependentSeedRoute instead of specific route type
docs/theme_system.md Fixed documentation typo (DimensSizeV2DimensSize)
assets/translations/en.json Added English translations for root detection messages
assets/translations/ko.json Added Korean translations for root detection messages
assets/images/lock_bg/lock.webp Background image for root alert screen

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 25 changed files in this pull request and generated 7 comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants